package com.cangxuan.manage.entity;

import lombok.Data;

import java.time.LocalDateTime;

/**
 * 作者：游星宇
 * 订单管理实体类
 */
@Data
public class Order {
    private Integer id;//订单编号
    private Integer buyerId;//买方用户ID
    private Integer sellerId;//卖方用户ID
    private Integer goodsId;//商品ID
    private Float price;//成交价格
    private Integer count;//成交数量

    private float transAmount;//成交金额
    private Float free;//手续费
    private float actualReceipt;//实际到账
    private  Integer registrationId;//挂单Id
    private LocalDateTime createTime;//订单创建时间
    private LocalDateTime payedTime;//支付时间
    private Integer stateId;//订单状态

    private String  orderformStateName;//订单状态

    private String name;//藏品名称
   /* private Integer orderformId;//订单编号*/

    public Order(Integer id, Integer buyerId, Integer sellerId, Integer goodsId, Float price, Integer count,
                 float transAmount, Float free, float actualReceipt, Integer registrationId, LocalDateTime createTime,
                 LocalDateTime payedTime, Integer stateId, String orderformStateName, String name) {
        this.id = id;
        this.buyerId = buyerId;
        this.sellerId = sellerId;
        this.goodsId = goodsId;
        this.price = price;
        this.count = count;
        this.transAmount = transAmount;
        this.free = free;
        this.actualReceipt = actualReceipt;
        this.registrationId = registrationId;
        this.createTime = createTime;
        this.payedTime = payedTime;
        this.stateId = stateId;
        this.orderformStateName = orderformStateName;
        this.name = name;

    }


    public Order() {
    }

}
